package com.joysuch.wwyt.dzhapi.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.joysuch.wwyt.api.base.dto.ApiJobDto;
import com.joysuch.wwyt.dzhapi.bean.ApiBpJobBean;

import java.util.List;

/**
 * @author zero
 * @since 2021/11/2 14:18
 */
public interface ApiBpJobMapper extends BaseMapper<ApiBpJobBean> {
    ApiBpJobBean findByNameAndCurrentCompany(String job, Long tenentId, String orgCode);

    ApiBpJobBean findByUniqueId(String uniqueId, Long tenentId, String orgCode);

    int countByName(String name, Long tenentId, String orgCode);

    void updateJobUserCount(Long jobId, Long tenentId, String orgCode);

    List<ApiJobDto> getlistForApi(String jobName, Long tenentId, String orgCode);

    Page<ApiJobDto> getlistByPageForApi(Page pageForApi, String jobName , Long tenentId, String orgCode);
    
}
